<template>
    <view class="center">
        <image class="success_image" :src="wait_approval_icon"></image>
        <view class="first_view">审核中......</view>
        <view class="second_view">认证审核结果将在1~3工作日通知</view>
        <view class="confirm" @tap="switchTo">确定</view>
    </view>
</template>

<script>
import {
    home
} from "../../../../components/common/images";

export default {
    onLoad(option) {
        if (option) this.isRealName = option.isRealName
        // fromRealName为1，说明是实名认证页面来的
    },
    data() {
        return {
            wait_approval_icon: home.wait_approval_icon,
            isRealName: 0
        }
    },
    methods: {
        switchTo() {
            if (this.isRealName == 1) {
                // 实名认证页面来的，返回钱包
                uni.navigateBack({
                    delta: 1
                })
            } else {
                uni.switchTab({
                    url: '/pages/shop/index'
                })
            }
        }
    }
}

</script>

<style scoped>
    .center {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 100vh;
    }
    .success_image {
        width: 122rpx;
        height: 140rpx;
    }

    .first_view {
        font-size: 36rpx;
        color: #ee5630;
        letter-spacing: 1rpx;
        margin-top: 28rpx;
    }

    .second_view {
        font-size: 28rpx;
        color: #252535;
        margin-top: 21rpx;
    }

    .confirm {
        width: 282rpx;
        line-height: 68rpx;
        background: #ee5630;
        border-radius: 8rpx;
        font-size: 28rpx;
        color: #ffffff;
        font-weight: bold;
        letter-spacing: 5rpx;
        margin-top: 100rpx;
    }
</style>
